<%--
  Created by IntelliJ IDEA.
  User: zzz
  Date: 2020/2/10
  Time: 15:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8" />
    <title>ok</title>
    <link rel="stylesheet" type="text/css" href="${APP_PATH}/portal/css/public.css"/>
    <link rel="stylesheet" type="text/css" href="${APP_PATH}/portal/css/proList.css" />
</head>
<body>
<!----------------------------------------order------------------>
<jsp:include page="/WEB-INF/jsps/Portal/common/top.jsp"/>
<div class="order mt cart">
    <div class="site">
        <p class="wrapper clearfix">
            <span class="fl">支付成功</span>
            <img class="top" src="${APP_PATH}/portal/img/temp/cartTop03.png">
        </p>
    </div>
    <p class="ok">支付成功！剩余<span>5</span>秒<a href="${APP_PATH}/toMyOrder">返回订单页</a></p>
</div>

<!--footer-->
<jsp:include page="/WEB-INF/jsps/Portal/common/bottom.jsp"/>
<script src="${APP_PATH}/portal/js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="${APP_PATH}/portal/js/public.js" type="text/javascript" charset="utf-8"></script>
<script src="${APP_PATH}/portal/js/pro.js" type="text/javascript" charset="utf-8"></script>

</body>
</html>
<script>
   var seconds = $(".ok span").text();
    function time(){
        seconds--;
        $(".ok span").text(seconds);
        if(seconds==0){
            window.location.href=("${APP_PATH}/toMyOrder")
        }
    }
    setInterval(time,1000);
</script>
